/*
 * Copyright(C) 2010 Luvina Software Company
 *
 * MstGroup.java, Oct 29, 2010 ntmhuong
 */
package net.luvina.manageuser.hibernate;

import java.util.HashSet;
import java.util.Set;

/**
 *
 *
 * @author Ngo Quang Tinh
 *
 */
public class MstGroup implements java.io.Serializable {

    private Integer groupId;
    private String groupName;
    private Set<TblUser> tblUsers = new HashSet<TblUser>(0);

    /**
     * Contructor
     */
    public MstGroup() {
    }

    /**
     * Contructor
     *
     * @param groupName
     *            groupName
     * @param users
     */
    public MstGroup(String groupName, Set<TblUser> tblUsers) {
        this.groupName = groupName;
        this.tblUsers = tblUsers;
    }

    /**
     * @return the groupId
     */
    public Integer getGroupId() {
        return groupId;
    }

    /**
     * @param groupId
     *            the groupId to set
     */
    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    /**
     * @return the groupName
     */
    public String getGroupName() {
        return groupName;
    }

    /**
     * @param groupName
     *            the groupName to set
     */
    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    /**
     * @return the tblUsers
     */
    public Set<TblUser> getTblUsers() {
        return tblUsers;
    }

    /**
     * @param tblUsers
     *            the tblUsers to set
     */
    public void setTblUsers(Set<TblUser> tblUsers) {
        this.tblUsers = tblUsers;
    }
}